projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f9bcf3
)
Avoid the use of g_autofree
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 24 Jul 2017 17:24:33 +0000
(13:24 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 24 Jul 2017 17:27:29 +0000
(13:27 -0400)
We can't use this in code that may be built on win32,
so lets just not use it at all.
gtk/gtkfilechoosernativeportal.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilechoosernativeportal.c
b/gtk/gtkfilechoosernativeportal.c
index 6f686e434c57acf55186058692cc1e1daf4f6a66..b6fa011b5380982b93e6a8bff81a53df55e78733 100644
(file)
--- a/
gtk/gtkfilechoosernativeportal.c
+++ b/
gtk/gtkfilechoosernativeportal.c
@@
-180,7
+180,7
@@
open_file_msg_cb (GObject *source_object,
GtkFileChooserNative *self = data->self;
GDBusMessage *reply;
GError *error = NULL;
-
g_autofree
char *handle = NULL;
+ char *handle = NULL;
reply = g_dbus_connection_send_message_with_reply_finish (data->connection, res, &error);
@@
-227,6
+227,7
@@
open_file_msg_cb (GObject *source_object,
}
g_object_unref (reply);
+ g_free (handle);
}
static GVariant *